package com.qf.day02;

import java.util.Scanner;

public class IfDemo {
    public static void main(String[] args) {
        //案列:如果身高大于180,且体重小于180,就可以当模特
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入体重");
        double weight=scanner.nextDouble();
        System.out.println("请输入身高");
        double height=scanner.nextDouble();
        if(weight<180&&height>180){
            System.out.println("体重:"+weight+",身高:"+height+"可以当模特");
        }else{
            System.out.println("体重:"+weight+",身高:"+height+"不可以当模特");
        }
    }
}
